package com.jblv.frame.common.es.base;

import java.io.Serializable;

/**
 * @author happyonion.yangtao
 * @version 1.0
 * @title ESBaseEntity
 * @projectName jblv-frame
 * @packageName com.jblv.common.es
 * @description ES 基础实体
 * @date Create at 2020/4/29 17:28
 * @since jdk1.8
 */
public abstract class ESBaseEntity implements Serializable {
    private static final long serialVersionUID = 1817382374766576037L;
    private String id;
    private Long createTime;
    private Long updateTime;
    private Double dist;

    public ESBaseEntity() {
    }

    public Double getDist() {
        return this.dist;
    }

    public void setDist(Double dist) {
        this.dist = dist;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public abstract String getIndexName();

    public abstract String getType();

    public String getPreTags() {
        return "<em>";
    }

    public String getPostTags() {
        return "</em>";
    }
}
